package cn.kgc.service.impl;

import cn.kgc.entity.ResumeExpect;
import cn.kgc.mapper.ResumeExpectMapper;
import cn.kgc.service.ResumeExpectService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author example
 * @version 1.0
 */
@Slf4j
@Service("resumeExpectService")
@SuppressWarnings("all")
public class ResumeExpectServiceImpl extends ServiceImpl<ResumeExpectMapper, ResumeExpect> implements ResumeExpectService {

    @Override
    public List<ResumeExpect> queryResumeExpectByResumeId(String resumeId, String userId) {
        LambdaQueryWrapper<ResumeExpect> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(ResumeExpect::getResumeId, resumeId);
        queryWrapper.eq(ResumeExpect::getUserId, userId);
        return list(queryWrapper);
    }

}
